package com.exp.practice.workbench.dao;

import com.exp.practice.workbench.domain.Question;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface QuestionDao {
    int addQuestion(Question question);

    int getTotal(Question question);

    List<Question> getQuestionList(@Param("skipCount")int skipCount,  @Param("pageSizes") int pageSizes, @Param("createTime") String createTime,@Param("head") String head);

    List<Question> getQuestionById(String qid);

    int update(Question question);

    int delete(String[] qid);

    List<Question> getQuestions(int skipCount, int pageSizes, @Param("qids") String[] qid);

    // 获取不包含参数qid的问题
    List<Question> getExcludeQuestions(@Param("type") String type, @Param("count") int count, @Param("qids") List<String> qid);

}
